package com.dty.dtycompute.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName tdata_ht_aeq
 */
@Data
public class TdataHtAeq implements Serializable {
    /**
     * 
     */
    private String id;

    /**
     * 
     */
    private String meterid;

    /**
     * 
     */
    private String departid;

    /**
     * 
     */
    private String measureid;

    /**
     * 
     */
    private String energycategoryid;

    /**
     * 
     */
    private String energyitemid;

    /**
     * 
     */
    private String meterno;

    /**
     * 
     */
    private Date dt;

    /**
     * 
     */
    private BigDecimal zong;

    /**
     * 
     */
    private BigDecimal jian;

    /**
     * 
     */
    private BigDecimal feng;

    /**
     * 
     */
    private BigDecimal ping;

    /**
     * 
     */
    private BigDecimal gu;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TdataHtAeq other = (TdataHtAeq) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getMeterid() == null ? other.getMeterid() == null : this.getMeterid().equals(other.getMeterid()))
            && (this.getDepartid() == null ? other.getDepartid() == null : this.getDepartid().equals(other.getDepartid()))
            && (this.getMeasureid() == null ? other.getMeasureid() == null : this.getMeasureid().equals(other.getMeasureid()))
            && (this.getEnergycategoryid() == null ? other.getEnergycategoryid() == null : this.getEnergycategoryid().equals(other.getEnergycategoryid()))
            && (this.getEnergyitemid() == null ? other.getEnergyitemid() == null : this.getEnergyitemid().equals(other.getEnergyitemid()))
            && (this.getMeterno() == null ? other.getMeterno() == null : this.getMeterno().equals(other.getMeterno()))
            && (this.getDt() == null ? other.getDt() == null : this.getDt().equals(other.getDt()))
            && (this.getZong() == null ? other.getZong() == null : this.getZong().equals(other.getZong()))
            && (this.getJian() == null ? other.getJian() == null : this.getJian().equals(other.getJian()))
            && (this.getFeng() == null ? other.getFeng() == null : this.getFeng().equals(other.getFeng()))
            && (this.getPing() == null ? other.getPing() == null : this.getPing().equals(other.getPing()))
            && (this.getGu() == null ? other.getGu() == null : this.getGu().equals(other.getGu()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMeterid() == null) ? 0 : getMeterid().hashCode());
        result = prime * result + ((getDepartid() == null) ? 0 : getDepartid().hashCode());
        result = prime * result + ((getMeasureid() == null) ? 0 : getMeasureid().hashCode());
        result = prime * result + ((getEnergycategoryid() == null) ? 0 : getEnergycategoryid().hashCode());
        result = prime * result + ((getEnergyitemid() == null) ? 0 : getEnergyitemid().hashCode());
        result = prime * result + ((getMeterno() == null) ? 0 : getMeterno().hashCode());
        result = prime * result + ((getDt() == null) ? 0 : getDt().hashCode());
        result = prime * result + ((getZong() == null) ? 0 : getZong().hashCode());
        result = prime * result + ((getJian() == null) ? 0 : getJian().hashCode());
        result = prime * result + ((getFeng() == null) ? 0 : getFeng().hashCode());
        result = prime * result + ((getPing() == null) ? 0 : getPing().hashCode());
        result = prime * result + ((getGu() == null) ? 0 : getGu().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", meterid=").append(meterid);
        sb.append(", departid=").append(departid);
        sb.append(", measureid=").append(measureid);
        sb.append(", energycategoryid=").append(energycategoryid);
        sb.append(", energyitemid=").append(energyitemid);
        sb.append(", meterno=").append(meterno);
        sb.append(", dt=").append(dt);
        sb.append(", zong=").append(zong);
        sb.append(", jian=").append(jian);
        sb.append(", feng=").append(feng);
        sb.append(", ping=").append(ping);
        sb.append(", gu=").append(gu);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}